Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GitHub signature checking feature + tests #239

Closed
wants to merge 23 commits into from

Conversation

Moliholy
Copy link
Contributor

Upon receiving a signed POST, i.e. containing a X-Hub-Signature header, that header was just ignored. Now it checks if the signature is correct, and in case it is, then it processes the POST normally.

Jose Molina and others added 20 commits May 20, 2015 09:31
…to github_signature

Conflicts:
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbRootAction.java
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbTrigger.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbPullRequestMergeTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbRepositoryTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbRootActionTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbTestUtil.java
…to github_signature

Conflicts:
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbRepository.java
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbTrigger.java
	src/main/resources/org/jenkinsci/plugins/ghprb/GhprbTrigger/config.jelly
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbRepositoryTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbTestUtil.java
Correct typo 'conext' -> 'context'
Also fixed null pointer when there are no credentials set up yet.
…to github_signature

Conflicts:
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbRootAction.java
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbTrigger.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbRootActionTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbTestUtil.java
mmitche referenced this pull request in mmitche/ghprb Dec 25, 2015
Fix log and accepted content type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants